﻿<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <title>高理抽题</title>
    <meta charset="UTF-8" />

    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <meta name="viewport" content="width=device-width,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <!--<link href="CSS/common.css" rel="stylesheet" />-->
    <!--<link href="CSS/businessCommon.css" rel="stylesheet" />-->
    <!--
    <link href="CSS/quiz.css" rel="stylesheet" />
    <link rel="stylesheet" href="CSS/common_4e7900c.css" />
    <link rel="stylesheet" href="CSS/commonComponents.css" />
    <link rel="stylesheet" href="CSS/simditor_0f9d8b0.css" />
    <link rel="stylesheet" href="CSS/quizNew.css" />
    <link rel="stylesheet" href="CSS/index.css">
    -->
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/quiz.css">
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/common_4e7900c.css">
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/commonComponents.css">
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/simditor_0f9d8b0.css">
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/quizNew.css"><link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/businessCommon.css">
    <link rel="stylesheet" href="https://web-1253780623.cos.ap-shanghai.myqcloud.com/ct.englishpg.tk/CSS/index.css">


    <!--css end-->
    <script>
            $.get("Get_Title_Number.php",function (data) {
                window.O_questions = data;
                document.getElementById("instructions").innerText ="当前题库中共有" + data  +  "道题，请填入1-" + data + "之间的数进行抽题。";
            })
    </script>
    <script>
        var Title_number;
        function run() {
            var Title_number = document.getElementById("Title_number").value;
            window.TMS=  Title_number; //题数
	
            if(window.TMS <= 0 || window.TMS >= parseInt(window.O_questions)){ //转成数值
                alert("请输入1-" + window.O_questions + "之间的数");
            }else{
                $.post("Get_question.php", {
                    "Title_number":Title_number,
                },function (data) {
                    document.getElementById("Bank").innerHTML = data;
                })
            }
        }
        function check() {
            var error_num = 0;
            var error_test = ""; //错题
            for(var i = 1;i<= window.TMS;i++){
                for (var j = 1;j<=4;j++){
                    var Subject_options = document.getElementById("Q/" + i + "/" + j); //获取题目
                    if(Subject_options != null){
                        if(Subject_options.value == "False" && Subject_options.checked == true){
                            error_num++
                            //alert("第" + i + "题选择错误");
                            error_test = error_test + i + ",";
                            //console.log("第" + i + "题选择错误");
                            console.log(error_test)
                        }
                    }
                }
            }
               
                if (error_num==0){
                    alert("恭喜你，全部答对！");
                }else{
                     alert("第"  + error_test + "题选择错误");
                     console.log("第"  + error_test + "题选择错误");
                }
        }

        //点击变色
        function BS(T_bh) {
            //console.log(T_bh)
            var  T_id = T_bh.substring(T_bh.indexOf("/") + 1 ,T_bh.lastIndexOf("/")) //找到题目数
            console.log(T_id)
            for(var i=1 ; i<=4 ; i++){
               var  T_name =  "Q/" + T_id + "/" + i.toString() + ".Fake"  //遍历题目名
                if (document.getElementById(T_name) != null){  //只遍历存在的
                    document.getElementById(T_name).style.background='#f1f3f7';
                }
            }
            document.getElementById(T_bh).style.background='#ffa200';//点击的换颜色

        }
    </script>
</head>
<body>
<div class="qr-holder">
    <div class="doc-fixed top">
        <div class="page-qrcode">
            <div class="page-qrcode-main">
                <!--<img src="img/fubuki_cute.gif" width="200">为了提高效率，只能把妹子图片隐藏-->
            </div>
        </div>
    </div>
</div>
<div class="doc quiz-doc">
    <div data-reactroot="" class="" style="min-height: 645px; padding-bottom: 0px; position: relative;">
        <div class="">
            <div>
                <!-- react-empty: 4 -->
            </div>
            <section class="user-bar bar-type" style="min-height: 46px;">
                <div class="user-bar-nav page-header clearfix">
                    <div class="page-header-holder" style="height: 46px;"></div>
                    <div class="header clearfix">
                        <div class="header-content">
                            <a class="logo-wrap logo" href="javascript:;"><img src="img/logo.png" alt="UMU" /></a>
                            <!-- react-empty: 12 -->
                            <div class="user-bar-container"></div>
                            <h1 class="toggle-line-wrap">
                                <div class="toggleLine groupTitle theme1 single  " style="-webkit-line-clamp: 2;">
                                    <span class="toggleLineWrap" style="-webkit-line-clamp: initial;"><span class="toggleCnt">高理题库抽题</span></span>
                                    <div></div>
                                </div></h1>
                        </div>
                        <!-- react-empty: 19 -->
                        <a class="toggle-btn toggle-menu-btn"><span class="close-btn-icon"></span><span class="un-login" onclick="window.open('./game')">我要考试</span>
                            <!-- react-empty: 23 --></a>
                    </div>
                </div>
                <div class="menu-wrap" style="display: none; max-height: 599px; overflow: auto;">
                    <div class="user-bar-menu">
                        <div class="user-bar-menu-inner-wrap">
                            <!-- react-empty: 27 -->
                            <div class="user-bar-menu-list">
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        <div class="quiz-cover-view">
            <div class="img-wrap">
                <img class="umu-img  " src="img/quiz-cover_7df9c7e.png" alt="" />
            </div>
            <div class="session-title">
                <div style="border: #D89707 solid 1px; margin: 5px  10px 10px 5px;">
                    <input type="tel"  id="Title_number" class="Title_number" placeholder="请输入要抽的题目数">
                </div>

            </div>
            <div class="cover-tips" id="instructions" style="text-align: center">
                正在查询题目数····
            </div>
            <div class="btn-wrap">
                <a onclick="run()" class="btn btn_giraffe">开始抽提</a>
            </div>
            <div id="Bank">

                <!--
                <section class="question-section question">

                    <div class="question-header questionTitle onlyone">
                        <div class="question-title" id="T">
                            //题目
                    </div>
                    <div class="question-body questionOptions questionContent ">
                        <div class="option-list radio-list">
                            //选项
                        </div>
                    </div>
                   -->
                </section>

            </div>
        </div>
        <div>
            <div class="sibling-placeholder"></div>
            <div class="doc-fixed bottom bordered filled">
                <div class="sessionSiblings">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- react-empty: 100 -->
<!-- react-empty: 101 -->
</div>
</div>
<!--js end-->
<script type="text/javascript" src="js/pingpp_00ef35f.js"></script>
<div id="translate-button" style="background-color: white; box-shadow: rgb(221, 221, 221) 0px 0px 2px 2px; display: none;">
    <img src="" />
</div>
</body>
</html>